﻿using Absky.Entity.LanguageModule;
using Absky.Web.Controllers;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Absky.Web.Areas.LanguageModule.Controllers
{
    [Area("LanguageModule")]
    public class LanguageTypeController : BaseController
    {
        public IActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 获取列表数据
        /// <summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> GetList(string queryJson)
        {
            var list = new List<LanguageTypeEntity> {
                new LanguageTypeEntity { Id = 1, Code = "Chinese", Name = "简体中文", IsMain = 1 },
                new LanguageTypeEntity { Id = 2, Code = "English", Name = "English", IsMain = 0 }
            };
            return Json(new { code = 200, data = list });
        }
    }
}
